package cn.dsp.admin.entity.admin;


import cn.dsp.admin.entity.BaseEntity;
import cn.dsp.admin.entity.Permission;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.HashSet;
import java.util.Set;


@Data
@EqualsAndHashCode(callSuper = false)
public class Role extends BaseEntity {
    private Integer roleId; //id
    private String roleName; //角色名
    private String remarks; //备注
    private Set<Permission> permissions = new HashSet<>();

    @Override
    public String toString() {
        return "Role{" +
                "roleId=" + roleId +
                ", roleName='" + roleName + '\'' +
                ", remarks='" + remarks + '\'' +
                ", permissions=" + permissions +
                "} \n";
    }
}